package com.zzz.service.impl;

import com.zzz.bean.User;
import com.zzz.dao.UserDao;
import com.zzz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author aXuan-zmx
 * @project com.zzz
 * @create 2021-04-29 21:06
 * @description 功能描述
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    public List<User> findAll() {
        System.out.println("查询所有用户。。。");
        return userDao.findAll();
    }

    public boolean save(User user) {
        return userDao.save(user);
    }
}
